package com.blumov.fastbox.domain.exceptions;

import com.blumov.fastbox.domain.enums.ErrorCode;

public class NonBusinessException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	public NonBusinessException(Throwable s) {
		super(s);
	}

	public NonBusinessException(ErrorCode errorCode) {
		super(errorCode.toString());
	}

	public NonBusinessException(ErrorCode errorCode, Throwable e) {
		super(errorCode.toString(), e);
	}

	public NonBusinessException(ErrorCode errorCode, String message) {
		super(errorCode.toString() + ":" + message);
	}
}
